package com.hq.modules.sys.service;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.hq.modules.sys.entity.GridOperator;
import com.hq.modules.sys.dao.GridOperatorMapper;
import com.hq.service.GridOperatorService;
@Service
public class GridOperatorServiceImpl implements GridOperatorService{

    @Resource
    private GridOperatorMapper gridOperatorMapper;

    @Override
    public int deleteByPrimaryKey(Long userId) {
        return gridOperatorMapper.deleteByPrimaryKey(userId);
    }

    @Override
    public int insert(GridOperator record) {
        return gridOperatorMapper.insert(record);
    }

    @Override
    public int insertSelective(GridOperator record) {
        return gridOperatorMapper.insertSelective(record);
    }

    @Override
    public GridOperator selectByPrimaryKey(Long userId) {
        return gridOperatorMapper.selectByPrimaryKey(userId);
    }

    @Override
    public int updateByPrimaryKeySelective(GridOperator record) {
        return gridOperatorMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(GridOperator record) {
        return gridOperatorMapper.updateByPrimaryKey(record);
    }

}
